<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="ot" uri="http://www.ideyatech.com/tides"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>

<c:if test="${newRow}">
<tr id="staff-row-${staff.id}" status="new">
	</c:if>
		<td>
	      <c:out value="${staff.lastName}" />
	    </td>
		<td>
	    	<c:out value="${staff.firstName}" />
	    </td>
	    <td>
	    	<c:out value="${staff.middleName}" />
	    </td>
	    <td>
	        <fmt:formatDate value='${staff.birthdate}' pattern="MMMM dd yyyy"/>
	    </td>
	    <td>
	    	<c:out value="${staff.gender.value}" />
	    </td>
	    <td>
	        <c:out value="${staff.position.value}" />
	    </td>
		<td>
			<ot:update_button id="${staff.id}" page="staffs.jspx" prefix="staff"/>                  		
		</td>	
	<c:if test="${newRow}">
</tr>
<script language="javascript">
IDEYATECH.crud.cancelNew('staff-');
IDEYATECH.crud.refreshTable('staff-table-results', {});
</script>
</c:if>